<?php

namespace app\common\model;

use think\model\relation\HasOne;

class Salesman extends BaseModel
{
    protected $hidden = ['password', 'delete_time'];

    public function dealer(): HasOne
    {
        return $this->hasOne(SalesmanDealer::class, 'salesman_id', 'id');
    }
}